package file;
//?
import java.io.File;
import java.io.FileFilter;

public class Test5 {
    public static void main(String[] args) {
        File dir = new File(".");
        if (dir.isDirectory()) {
  //          FileFilter filter = new FileFilter() {
 //               @Override
  //              public boolean accept(File f) {
 //                   return f.getName().contains("e");
  //              }
   //         };
            File[] subs = dir.listFiles(f->f.getName().startsWith("."));
            for (File sub : subs) {
                System.out.println(sub.getName());
            }
        }
    }}
